#ifndef _np_color
#define _np_color

//typedef Vec3 Color;

class Color{
public:
	float r;
	float g;
	float b;
	float a;
	Color(const float& r, const float& g, const float& b, const float& a);
	Color(const float& r, const float& g, const float& b);
	inline float* getPointer(){return &r;};
	inline float& operator[] (const int& idx){assert(idx<4);return getPointer()[idx];};
};

/*
class Color{
protected:
	float* v;
#ifdef _NP_POINTER_INJECT
	bool _to_destroy = false;
#endif
public:
	Color(const float& r, const float& g, const float& b);
#ifdef _NP_POINTER_INJECT
	Color(float* p);
#endif
	~Color();
};
//*/
#endif
